//
//  RBGServiceMenu.m
//  BateauGenerique
//
//  Created by Kevin De Jesus Ferreira on 31/05/2014.
//  Copyright (c) 2014 Kevin De Jesus Ferreira. All rights reserved.
//

#import "RBGServiceMenu.h"
#import "RBGConfigurationClientService.h"
#import "Constantes.h"
#import "XMLParser.h"

@interface RBGServiceMenu ()<ServiceDelegate>

@end

@implementation RBGServiceMenu

-(void) getMenu{
   
    RBGConfigurationClientService * service = [[RBGConfigurationClientService alloc]init];
    service.delegate = self;
    
    // On récupére les paramétres
    service.typeService = [NSString stringWithFormat:@"%01d",menu];
    [service getDonnneesByUrl:URL_TYPES_ANNONCES andArguments:nil];
    
}


- (void) receiveDonneesService:(id)donnees fromService:(int)service{
    
    NSLog(@"%@",donnees);
    [self.delegate receiveDonneesMenu:donnees andType:service];
    
}

- (void) receiveErreurService:(int)statut{
    [self.delegate receiveErreurMenu:statut];
}

@end
